package com.yang.security.token;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by baipan
 * Date: 2019-12-18
 * TokenHelper
 */
public class TokenHelper {


	private static final String HEAD_TOKEN_KEY = "Authorization";


	/**
	 * 从request中根据header获取token
	 */
	public static String getToken(HttpServletRequest request) {
		return request.getHeader(HEAD_TOKEN_KEY);
	}

}
